package com.spa.application.dto.admin;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.Date;

@Data
@JsonInclude
public class OrderExportDTO {

    @ExcelProperty(value = "序列", index = 0)
    private int seq;

    @ExcelProperty(value = "店面", index = 1)
    @ColumnWidth(value = 15)
    private String shopName;

    @ExcelProperty(value = "订单编号", index = 2)
    @ColumnWidth(value = 15)
    private String orderCode;

    @ExcelProperty(value = "交易单号", index = 3)
    @ColumnWidth(value = 25)
    private String transactionId;

    @ExcelProperty(value = "订单状态", index = 4)
    @ColumnWidth(value = 15)
    private String orderStatusName;

    @ExcelProperty(value = "服务项目", index = 5)
    @ColumnWidth(value = 15)
    private String serviceName;

    @ExcelProperty(value = "服务技师", index = 6)
    @ColumnWidth(value = 15)
    private String massagistName;

    @ExcelProperty(value = "下单时间", index = 7)
    @ColumnWidth(value = 30)
    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    private Date orderTime;

    @ExcelProperty(value = "项目金额", index = 8)
    @ColumnWidth(value = 15)
    private String serviceMoney;

    @ExcelProperty(value = "加钟金额", index = 9)
    @ColumnWidth(value = 15)
    private String extTotalPrice;

    @ExcelProperty(value = "车费", index = 10)
    @ColumnWidth(value = 15)
    private String travelPrice;

    @ExcelProperty(value = "订单总额", index = 11)
    @ColumnWidth(value = 15)
    private String orderTotalMoney;

    @ExcelProperty(value = "优惠券", index = 12)
    @ColumnWidth(value = 15)
    private String ticketMoney;

    @ExcelProperty(value = "客户名称", index = 13)
    @ColumnWidth(value = 15)
    private String customerName;

    @ExcelProperty(value = "支付方式", index = 14)
    @ColumnWidth(value = 15)
    private String priceType;

    @ExcelProperty(value = "技师分佣金额", index = 15)
    @ColumnWidth(value = 15)
    private String massagistBrokerageMoney;

    @ExcelProperty(value = "应付技师出行费用", index = 16)
    @ColumnWidth(value = 15)
    private String amountPayableMassagistTrip;

    @ExcelProperty(value = "门店分佣金额", index = 17)
    @ColumnWidth(value = 15)
    private String shopBrokerageMoney;

    @ExcelProperty(value = "平台分佣金额", index = 18)
    @ColumnWidth(value = 15)
    private String platformBrokerageMoney;

    @ExcelProperty(value = "退费金额", index = 19)
    @ColumnWidth(value = 15)
    private String refundMoney;

    @ExcelProperty(value = "订单来源", index = 20)
    private String source;

}
